﻿#include "CommandBase.h"
#include <QDebug>

namespace CommandManager
{

    CommandBase::CommandBase()
    {
    }

    void CommandBase::initCmdName()
    {
        m_cmdName = QString(this->metaObject()->className());
    }

    bool CommandBase::execute()
    {
        bool _isSuccessed = false;

        return _isSuccessed;
    }

    void CommandBase::undo()
    {
    
    }

    void CommandBase::redo()
    {
    
    }

    /// @brief 获取命令名称

    QString CommandBase::getCmdName()
    {
        return m_cmdName;
    }

}
